#!/usr/bin/env python

import nltk
from nltk.corpus import brown
from nltk import FreqDist

brown_tagged_sents = brown.tagged_sents(categories='news')
size = int (len(brown_tagged_sents) * 0.9)
test_data = brown_tagged_sents[size:]

from pickle import load
input = open('t2.pkl','rb')
tagger = load(input)
input.close()

print 'loaded tagger, ',tagger.evaluate(test_data)